package com.wh.shiroswagger.token;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/5 22:38
 * @Description
 */
public class MyToken extends UsernamePasswordToken {
    private String token;
    public MyToken(String token){
        this.token=token;
    }
    public String getToken(){
        return token;
    }

    @Override
    public Object getPrincipal() {
        return token;

    }
}
